package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("question")
public class QuestionController {

    @GetMapping
    public String listQuestion(){

        System.out.println("Plus");
        System.out.println("fujin周一写代码！");
        return "ok";
    }

    @PostMapping
    public String addQuestion(){

        System.out.println("fujin 周二写代码！");
        return "ok";
    }
}
